package com.example.hzq.food.iface;

import com.example.hzq.food.bean.Success;
import com.example.hzq.food.bean.CollectBean;
import com.example.hzq.food.bean.FoodBean;
import com.example.hzq.food.bean.LoginBean;
import com.example.hzq.food.bean.MyBean;
import com.example.hzq.food.bean.OrderBean;
import com.example.hzq.food.bean.RegisterBean;
import com.example.hzq.food.bean.ShopBean;

import java.util.List;

import retrofit2.Call;

/**
 * Created by hzq on 2017/6/13.
 */

public interface iface {
    Call<List<FoodBean>> getfood(int shop_id);
    Call<LoginBean> login(String userName, String userPwd);
    Call<RegisterBean> register(String userName, String userPwd, String phone, String address, String comment);
    Call<List<ShopBean>> getshop();
    Call<MyBean> getmy(int userid);
    Call<List<CollectBean>>getmycollect(int user_id,int flag);
    Call<CollectBean>collectornoshop(int user_id,int shop_id);
    Call<CollectBean>collectornofood(int user_id,int foodid);
    Call<CollectBean>iscollect(int user_id,int shop_food_id,int flag);
    Call<List<OrderBean>>getallorder(int food_id);
    Call<Success>insertOrder(int user_id, int food, int num, double sum, String suggesttime);
    Call<Success> updata( int userid,String userName, String userPwd, String phone,String address);
    Call<List<FoodBean>> getfoodbysearch(String search);
    Call<Success>insertComment(int order_id,String content);//增加评论
  //修改评论
    Call<Success>updateComment(int order_id, String content);
  //删除评论
    Call<Success>deleteComment( int order_id);
    Call<List<OrderBean>> getalluserfoodorder(int food_id);
    Call<FoodBean> getfoodbyid(int food_id);
    Call<List<OrderBean>> getorder(int user_id);
}
